package com.linkwechat.common.utils;

import java.io.Closeable;
import java.io.IOException;

public class StreamCloseUtil {
    public static void closeAllStream(Closeable...closeables){
        for (Closeable c:closeables
        ) {
            if(c!=null){
                try {
                    c.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }

    }
}
